package com.itheima.JobApplication.job;

import com.xxl.job.core.handler.annotation.XxlJob;
import org.springframework.stereotype.Component;

import java.util.Date;

@Component
public class DemoXxlJob {

    @XxlJob("demoJobHandler") // 指定任务名称
    public void demoJob(){
        System.out.println("当前系统时间 = " + new Date());
    }
}
